package com.emar.adx.yiqifa.util;

import org.apache.commons.codec.Encoder;
import org.apache.commons.codec.binary.Base64;

/**
 * Created by xiaoliang on 2016/6/20.
 * 2016/6/20 10:53
 *
 * @Version 1.0
 */
public class CoderUtil {


    public static void encodeBase64(){

        Encoder encoder = new Base64();
        String ss = "xxxx123";
        byte[] t = Base64.encodeBase64(ss.getBytes());
        System.out.print(t.toString());

    }


}
